﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Message.Blackboard" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div id="MessagesBox" style="display:none">
					<div class="MessagePanel4">
					    <img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
					    <div id="MessageText"></div>
					</div>
				</div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("M0020")%></h1>
							</div>
							<div class="submenuN_button">
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="first " style="cursor:pointer"><span><a href="/mail/inbox.htm">Inbox</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/outbox.htm">Sent Messages</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/notifications.htm">Notifications</a></span></li>
						<li class="selATags" style="cursor:pointer"><span><a href="/mail/blackboard.htm">Blackboard</a></span></li>
						<li class="" style="cursor:pointer"><span><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/mail/compose.htm">Compose new message</a><%}else{ %><a href="#" onclick="NotAffirm()">Compose new message</a><%} %></span></li>
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
						<div class="Center9001Content">
							<div class="blackboard_area">
							    <div id="CommentList">
								<asp:Repeater ID="userComment" runat="server" >
									<ItemTemplate>
									<div class="my_comment">
										<div class="my_comment_avatar Pic50"><a class="photo_50" href="<%#WWWHost%>/<%#Eval("userFrom") %>.htm" ><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>" : Eval("Avatar", "<img src=\"{0}\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>").ToString()%></a></div>
										<div class="my_comment_Bacontent">
											<div class="my_comment_acontent"><span class="grey12"><a href="<%#WWWHost%>/<%#Eval("userFrom") %>.htm" ><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a> <%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span><div class="margin5"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("content").ToString()).Replace("\n", "<br/>")%></div></div>
											<div class="my_comment_delete"><a href="#" onclick="DelComment('<%#Eval("tcm2Id")%>')" title="<%#GetText("C0050") %>"><img src="/Images/board_delete.gif" border="0" /></a></div>
											<div class="clear"></div>
										</div>
										<div class="Clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
								<%if (userComment.Items.Count ==0)
								{ %><div class="error_yellow" style="margin-bottom: 30px">No Comment.</div><%} %>
								</div>
								<div id="commentPager"></div>
								<div id="CommentContent">
									<p class="black18"><a name="#commentpost"></a><%=GetText("ML012")%></p>
									<span id="valContent" style="color: Red; display: none;" class="red10" ><%=GetText("C1009")%></span>
									<p><textarea id="txtCommInput" rows="5" onclick="erclose()" style="width:625px"></textarea></p>
									<p><input id="btnCommInput" class="button" type="button" value="<%=GetText("C0046")%>" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"AddComm()\"":"onclick=\"NotAffirm()\""%> /></p>
								</div>
							</div>							
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<div id="CommentTemplate" style="display: none">
	<div class="my_comment">
		<div class="my_comment_avatar Pic50"><a class="photo_50" href='/$userFrom$.htm'>$Avatar$</a></div>
		<div class="my_comment_Bacontent">
			<div class="my_comment_acontent"><span class="grey12"><a href='/$userFrom$.htm'>$NickName$</a> $createDate$</span><p>$content$</p></div>
			<div class="my_comment_delete"><a href="#" onclick="DelComment('$tcm2Id$')" title="<%=GetText("C0050") %>"><img src="/Images/board_delete.gif" border="0" /></a></div>
			<div class="clear"></div>
		</div>
		<div class="Clear"></div>
	</div>
</div>
<script>
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate2 = "<%=GetText("C0036")%>";
var C1008="<%=GetText("C1008") %>";
var C0069 = '<%=GetText("C0069")%>';
var gCancel = "<%=GetText("C0056")%>";
var MessageImageF = "/images/ico_info.gif";
var MessageTextF="a case of crabs";
var Memberno='<%=Memberno %>';
</script>